<?php

declare(strict_types=1);

namespace App\Fastapp\Model;

use Mine\MineModel;

/**
 * @property int $id 主键
 * @property \Carbon\Carbon $created_at 创建时间
 * @property \Carbon\Carbon $updated_at 更新时间
 * @property int $currency_id 
 * @property string $symbol 
 * @property string $rate 
 */
class CurrencyRate extends MineModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'currency_rate';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'created_at', 'updated_at', 'currency_id', 'symbol', 'rate'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'currency_id' => 'integer', 'rate' => 'decimal:2'];
}
